Paulo Dybala netted a 97th-minute penalty just moments after Jose Sosa had been dismissed to help Juventus to a dramatic 2-1 win over AC Milan in Friday's Serie A encounter in Turin.